﻿@model Aidbrella.Web.ViewModels.UserRegisterViewModel

@{
    ViewBag.Title = "Register";
}

<h2>Register</h2>

@using (Html.BeginForm())
{

 @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
        <div>
            <fieldset>
                <div class="editor-label">
                   @Html.LabelFor(m => m.NewUser.FirstName)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.NewUser.FirstName)
                    @Html.ValidationMessageFor(m => m.NewUser.FirstName)
                </div>

                <div class="editor-label">
                   @Html.LabelFor(m => m.NewUser.LastName)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.NewUser.LastName)
                    @Html.ValidationMessageFor(m => m.NewUser.LastName)
                </div>
              
                <div class="editor-label">
                   @Html.LabelFor(m => m.NewUser.UserName)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.NewUser.UserName)
                    @Html.ValidationMessageFor(m => m.NewUser.UserName)
                </div>
                
                <div class="editor-label">
                    @Html.LabelFor(m => m.NewUser.Email)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.NewUser.Email)
                    @Html.ValidationMessageFor(m => m.NewUser.Email)
                </div>
                
                <div class="editor-label">
                    @Html.LabelFor(m => m.NewUser.Password)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.NewUser.Password)
                    @Html.ValidationMessageFor(m => m.NewUser.Password)
                </div>
                
                <div class="editor-label">
                    @Html.LabelFor(m => m.ConfirmPassword)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>
                
                <p>
                    <input type="submit" value="Register" />
                </p>
            </fieldset>
        </div>
	<p>Already have an account? You can <a href="@Url.Action(MVC.Account.Actions.LogOn())">log in</a> here.</p>
}